from celery_task.celery import app
from celery.result import AsyncResult
id='890b499f-c6b9-4c64-8cff-4dcdb7288316'
if __name__=='__main__':
    asy = AsyncResult(id=id,app=app)
    if asy.successful():
        result = asy.get()
        print(result)
    elif asy.failed():
        print('任务失败')
    elif asy.status=='PENDING':
        print('任务等待被执行')
    elif asy.status=='RETRY':
        print('任务异常后正在重试')
    elif asy.status=='STARTED':
        print('任务已经开始被执行')
    else:
        print('sssssss')

